package com.sjy.ylxt.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: 史俊颖
 * @CreateTime: 2024-12-12
 * @Description: 登录请求类
 */
@Data
public class LoginDTO {

    @NotNull(message = "角色参数不可为空")
    private Integer role;

    @NotBlank(message = "手机号不能为空")
    private String phone;

    @NotBlank(message = "密码不能为空")
    private String password;
}
